# name : surv.event.power.1line events|power, ttenevent
# key: surv.event.power.1line
# contributor: Shuguang Sun
# --
((qnorm(1-${1:0.025}) + qnorm(${2:0.80})) / log(1/${3:hr}))^2 * 4